// 查询分页列表
import request from "@/utils/request.js";

//我的合同模块接口
export function getConMyAttachmentPageList(query) {
    return request({
        url: '/con/myConAttachment/page',
        method: 'get',
        params: query
    })
}

export function deleteConMyAttachment(id) {
    return request({
        url: '/con/myConAttachment/delete/' + id,
        method: 'delete'
    })
}

export function getConMyAttachmentFile(id) {
    return request({
        url: '/con/myConAttachment/getPageOfficeFile/' + id,
        method: 'get'
    })
}


//办理合同模块接口
export function getConProcessAttachmentPageList(query) {
    return request({
        url: '/con/processConAttachment/page',
        method: 'get',
        params: query
    })
}

export function getConProcessAttachmentFile(id) {
    return request({
        url: '/con/processConAttachment/getPageOfficeFile/' + id,
        method: 'get'
    })
}

//部门合同模块接口
export function getConDeptAttachmentPageList(query) {
    return request({
        url: '/con/deptConAttachment/page',
        method: 'get',
        params: query
    })
}

export function getConDeptAttachmentFile(id) {
    return request({
        url: '/con/deptConAttachment/getPageOfficeFile/' + id,
        method: 'get'
    })
}
